package com.jet.chat.command;

import java.util.regex.Matcher;

import com.jet.chat.message.Message;
import com.jet.chat.server.ChatServer;
import com.jet.chat.server.ChatSession;

public class ChatCommandListCommands extends ChatCommandAbstract {

	public ChatCommandListCommands() {
		super("^/\\w+");
	}

	@Override
	protected void executeCommand(Matcher matcher, ChatServer chatServer, ChatSession chatSession, Message chatMessage) throws Exception {
		chatSession.getQueue().addMessage(chatServer.getHelp());
	}

}
